#ifndef IO_H
#define IO_H

#include <iostream>
#include <vector>
#include <fstream>
#include <opencv/cv.hpp>
#include <opencv2/opencv.hpp>
#include <opencv2/core/core.hpp>

class IO{
    public:
        static void writeMat(
        		const char *fileName,
        		const cv::Mat &dictionary,
        		const char *dictionaryName);
        static void readMat(
        		const char *fileName,
        		cv::Mat &dictionary,
        		const char *dictionaryName);
        static void read_csv(
        		const std::string& filename,
        		std::vector<cv::Mat>& images,
        		std::vector<int>& labels);
};

#endif
